import type { Iroute } from "../../types"

//导入接口
import assetAbnormal from "./assetAbnormal"
import assetApproveList from "./assetApproveList"
import assetLocation from "./assetLocation"
import assetPermission from "./assetPermission"
import assetPlan from "./assetPlan"
import assetQuery from "./assetQuery"
import assetReport from "./assetReport"
import assetTotalReport from "./assetTotalReport"
import common from "./common"
//import printQrcode from "./printQrcode"

const URL = "/asset"

//访问路径,对应方法
const routes: Array<Iroute> = [
  {
    url: URL + "/assetAbnormal",
    fn: assetAbnormal,
  },
  {
    url: URL + "/assetApproveList",
    fn: assetApproveList,
  },
  {
    url: URL + "/assetLocation",
    fn: assetLocation,
  },
  {
    url: URL + "/assetPermission",
    fn: assetPermission,
  },
  {
    url: URL + "/assetPlan",
    fn: assetPlan,
  },
  {
    url: URL + "/assetReport",
    fn: assetReport,
  },
  {
    url: URL + "/assetTotalReport",
    fn: assetTotalReport,
  },
  {
    url: URL + "/assetPermission",
    fn: assetPermission,
  },
  {
    url: URL + "/assetQuery",
    fn: assetQuery,
  },
  {
    url: URL,
    fn: common,
  },
  // {
  //   url: URL + "/printQrcode",
  //   fn: printQrcode,
  // },
]

export default routes
